package com.sg.dto.biz.bff.common;

import com.wicket.okrbff.common.annotations.TreeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffDeptObjMisStaSetWeightDto
 * @使用场景
 */
@Data
public class BffDeptObjMisStaSetWeightDto implements Serializable {

    /**
     * 对象目标周期权重设置ID
     */
    @ApiModelProperty("对象目标周期权重设置ID")
    private String objTargetCycleWeightSetId;

    /**
     * 被评对象目标周期ID
     */
    @ApiModelProperty("被评对象目标周期ID")
    private String evaObjTargetCycleId;

    /**
     * 目标周期简称
     */
    @ApiModelProperty("目标周期简称")
    private String cyclelAlias;

    /**
     * 关联目标内容ID
     */
    @ApiModelProperty("关联目标内容ID")
    private String targetCycleContentId;

    /**
     * 周期名称
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 周期类型实例简称
     */
    @ApiModelProperty("周期类型实例简称")
    private String cycleNumberShortName;

    /**
     * 是否父周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否父周期")
    private String isParentCycle;

    /**
     * 是否子周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否子周期")
    private String isSubCycle;

    /**
     * 是否中期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否中期")
    private String isMetaphase;

    /**
     * 虚拟组织下部门ID
     */
    @ApiModelProperty("虚拟组织下部门ID")
    private String deptId;

    /**
     * 部门简称
     */
    @ApiModelProperty("部门简称")
    private String deptShortName;

    /**
     * 权重
     */
    @ApiModelProperty("权重")
    private Double weightValue;

    /**
     * 权重分值
     */
    @ApiModelProperty("权重分值")
    private Double weightScore;
    /**
     * 上级被评对象目标周期ID
     */
    @ApiModelProperty("上级被评对象目标周期ID")
    @TreeType("pid")
    private String parentEvaObjTargetCycleId;

    /**
     * 被评对象类型编码 EVA_PORTRAIT:评价画像 EVA_OBJECT:评价对象 FLEVEL_OBJ_TASK_DUTY_DEPT:一级部门目标任务责任部门 OKR_SUBJECT_DEPT:OKR责任主体部门 OKR_SUBJECT_PERSONAL:OKR责任主体个人
     */
    @ApiModelProperty("被评对象类型编码")
    private String evaObjTypeCode;

    /**
     * 关联目标内容类型编码 TARGET:目标 TARGET_CATEGORY:目标分类 OBJECTIVE:指标
     */
    @ApiModelProperty("关联目标内容类型编码")
    private String targetCycleContentTypeCode;

    /**
     * 目标周期名称
     */
    @ApiModelProperty("目标周期名称")
    private String targetCycleName;

    /**
     * 虚拟组织成员就职记录ID
     */
    @ApiModelProperty("部门目标责任人就职记录ID")
    private String virtualOrgInductionRecordId;

    /**
     * 部门目标责任人真实姓名
     */
    @ApiModelProperty("部门目标责任人真实姓名")
    private String personLiableName;

    /**
     * 部门目标责任人昵称
     */
    @ApiModelProperty("部门目标责任人昵称")
    private String personLiableNickName;

    /**
     * 身份人员ID
     */
    @ApiModelProperty("分管领导员工身份人员ID")
    private String originalRoleMemberId;

    /**
     * 分管领导真实姓名
     */
    @ApiModelProperty("分管领导真实姓名")
    private String deptLeaderName;

    /**
     * 分管领导昵称
     */
    @ApiModelProperty("分管领导昵称")
    private String deptLeaderNickName;

    /**
     * 周期ID
     */
    @ApiModelProperty("周期ID")
    private String cycleId;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 被评对象目标周期标识
     */
    @TreeType("id")
    @ApiModelProperty("被评对象目标周期标识")
    private String evaObjTargetCycleCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffDeptObjMisStaSetWeightDto that = (BffDeptObjMisStaSetWeightDto) o;
        return objTargetCycleWeightSetId == that.objTargetCycleWeightSetId && evaObjTargetCycleId == that.evaObjTargetCycleId && cyclelAlias == that.cyclelAlias && targetCycleContentId == that.targetCycleContentId && cycleStandardName == that.cycleStandardName && cycleNumberShortName == that.cycleNumberShortName && isParentCycle == that.isParentCycle && isSubCycle == that.isSubCycle && isMetaphase == that.isMetaphase && deptId == that.deptId && deptShortName == that.deptShortName && weightValue == that.weightValue && weightScore == that.weightScore && parentEvaObjTargetCycleId == that.parentEvaObjTargetCycleId && evaObjTypeCode == that.evaObjTypeCode && targetCycleContentTypeCode == that.targetCycleContentTypeCode && targetCycleName == that.targetCycleName && virtualOrgInductionRecordId == that.virtualOrgInductionRecordId && personLiableName == that.personLiableName && personLiableNickName == that.personLiableNickName && originalRoleMemberId == that.originalRoleMemberId && deptLeaderName == that.deptLeaderName && deptLeaderNickName == that.deptLeaderNickName && cycleId == that.cycleId && subjectLifeCycle == that.subjectLifeCycle && evaObjTargetCycleCode == that.evaObjTargetCycleCode;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), objTargetCycleWeightSetId, evaObjTargetCycleId, cyclelAlias, targetCycleContentId, cycleStandardName, cycleNumberShortName, isParentCycle, isSubCycle, isMetaphase, deptId, deptShortName, weightValue, weightScore, parentEvaObjTargetCycleId, evaObjTypeCode, targetCycleContentTypeCode, targetCycleName, virtualOrgInductionRecordId, personLiableName, personLiableNickName, originalRoleMemberId, deptLeaderName, deptLeaderNickName, cycleId, subjectLifeCycle, evaObjTargetCycleCode);
    }


}
   